package cn.java59;

import java.util.Scanner;

public class Homework2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double time = 0;
		double sum = 0;
		double average = 0;
		for (int i = 0; i < 5; i++) {
			System.out.print("请输入周" + (i + 1) + "的学习时间:");
			time = sc.nextDouble();
			sum += time;

		}
		average = sum / 5;
		System.out.println("周1-周5平均学习时间为：" + average + "小时");

	}

}
